package cn.blnp.net.flowable.task.service.introduce;

import lombok.Data;
import org.flowable.engine.delegate.DelegateExecution;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * <h3></h3>
 *
 * @author <a href="mailto:blnp.yibin@qq.com">lyb</a>
 * @version 1.0
 * @since 2025/5/12 18:02
 */
@Data
@Component
public class BusinessBean implements Serializable {

    private float total;
    /**
     * 无参表达式
     */
    public void calculateMount1() {
        //此处省略方法逻辑代码
    }
    /**
     * 带参数的表达式
     * @param execution DelegateExecution对象
     * @param money 名称为money的流程变量
     */
    public void calculateMount2(DelegateExecution execution, float money) {
        //此处省略方法逻辑代码
    }
}
